<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改项目立项')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-project-edit" th:object="${gcProject}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">项目编号：</label>
                <div class="col-sm-8">
                    <input name="orderNo" th:field="*{orderNo}" class="form-control" autoComplete="off" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">项目名称(与合同一致)：</label>
                <div class="col-sm-8">
                    <input name="name" th:field="*{name}" class="form-control" autoComplete="off" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">单位名称：</label>
                <div class="col-sm-8">
                    <select id="customerName" name="customerName" th:field="*{customerName}" class="form-control" required>
                    	<option value=""></option>
						<option th:each="cl:${clis}" th:value="${cl.name}" th:text="${cl.name}"></option>
					</select>
                </div>
            </div>
<!--             <div class="form-group">     -->
<!--                 <label class="col-sm-3 control-label ">项目框架协议：</label> -->
<!--                 <div class="col-sm-8"> -->
<!--                     <select id="groupName" name="groupName" th:field="*{groupName}" class="form-control" > -->
<!--                     	<option value=""></option> -->
<!-- 						<option th:each="gl:${glis}" th:value="${gl.name}" th:text="${gl.name}"></option> -->
<!-- 					</select> -->
<!--                 </div> -->
<!--             </div> -->
            
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">合同总金额：</label>
                <div class="col-sm-8">
                    <input name="zongje" th:field="*{zongje}" class="form-control" autoComplete="off" type="text" required>
                </div>
            </div>
<!--             <div class="form-group"> -->
<!--                 <label class="col-sm-3 control-label is-required">项目描述：</label> -->
<!--                 <div class="col-sm-8"> -->
<!--                     <textarea name="descs" class="form-control" required>[[*{descs}]]</textarea> -->
<!--                 </div> -->
<!--             </div> -->
        </form>
    </div>
<!--     <h4 class="form-header h4">基本信息</h4> -->
<!--     <table id="bootstrap-table"></table> -->
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "gcgl/project";
        $("#form-project-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-project-edit').serialize());
            }
        }
        
        /**
        $(function() {
            var options = {
                url: "/gcgl/sjtz/list",
                showSearch: false,
		        showRefresh: false,
		        showToggle: false,
		        showColumns: false,
		        pagination:false,
                columns: [{
                    field: 'orderNo',
                    title: '项目编号'
                },
                {
                    field: 'zilwj',
                    title: '资料文件',
                    formatter: function(value, item, index) {
		            	return "<a target='_blank' href="+item.zilwj+">查看</a>";
		            }
                }]
            };
            $.table.init(options);
        });
        **/
    </script>
</body>
</html>